home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Examples / A-Z / Q / QuickDraw3D / Simple QuickDraw 3D View / UQD3DViewer.h < prev   
Encoding:
Text File  |  1996-04-03  |  2.4 KB  |  96 lines  |  [TEXT/MPS ]

  1. //----------------------------------------------------------------------------------------
  2. // UQD3DViewerView.h
  3. // Copyright © 1996 by Geoffrey J. Clapp. All rights reserved. 
  4. //----------------------------------------------------------------------------------------
  5.  
  6. #ifndef __UQD3DViewer__
  7. #define __UQD3DViewer__
  8.  
  9. #ifndef __UVIEW__
  10. #include "UView.h"
  11. #endif
  12.  
  13. //QuickDraw3D
  14. #ifndef  QD3DViewer_h
  15. #include "QD3DViewer.h"
  16. #endif
  17.  
  18. //----------------------------------------------------------------------------------------
  19. // TQD3DViewerView
  20. //----------------------------------------------------------------------------------------
  21.  
  22. class TQD3DViewerView: public TView
  23. {
  24.     MA_DECLARE_CLASS;
  25.  
  26.   public:    
  27.     TQD3DViewerView(); 
  28.  
  29.     virtual ~TQD3DViewerView();
  30.     
  31.     virtual void IQD3DViewerView(TDocument* itsDocument,
  32.                                 TView* itsSuperView,
  33.                                 const VPoint& itsLocation,
  34.                                 const VPoint& itsSize);
  35.                                         
  36.     virtual void DoPostCreate(TDocument* itsDocument); 
  37.                            
  38.     virtual void Draw(const VRect& area); 
  39.     
  40.     virtual void DoSetupMenus(); 
  41.     
  42.     virtual void DoMenuCommand(CommandNumber aCommandNumber);
  43.     
  44.     virtual void DoMouseCommand(VPoint& theMouse,
  45.                                   TToolboxEvent* event,
  46.                                   CPoint hysteresis);
  47.     
  48.     virtual    void DoSetCursor(const VPoint& localPoint, RgnHandle cursorRegion);
  49.  
  50.     virtual void AddViewerToView(unsigned long theViewerFlags);
  51.     
  52.     virtual void RemoveViewerFromView();
  53.     
  54.     virtual void SetRenderer(TQ3ObjectType renderType,Boolean redraw);
  55.     
  56.     virtual TQ3RendererObject* GetRenderer();
  57.  
  58.     virtual PicHandle AsPict();
  59.     
  60.     virtual void SetBackgroundColor(TQ3ColorARGB* newColor, Boolean redraw);
  61.     
  62.     virtual void SetBackgroundColor(RGBColor newColor, float alpha, Boolean redraw);
  63.     
  64.     virtual RGBColor     GetRGBBackgroundColor();
  65.     
  66.     virtual TQ3ColorARGB* GetBackgroundColor();
  67.  
  68.  
  69.             void SetCreationType(Boolean UseManual);
  70.             
  71.     
  72.     virtual void SetViewerFlags(unsigned long theViewerFlags);
  73.     
  74.     virtual unsigned long GetViewerFlags();
  75.     
  76.     virtual void SetCurrentButton(unsigned long theButton);
  77.     
  78.     virtual unsigned long GetCurrentButton();
  79.  
  80.     
  81.   protected:
  82.     TQ3ViewerObject fViewer;
  83.     Boolean            fUseManualCreation;
  84.     
  85. };
  86.  
  87.  
  88. //----------------------------------------------------------------------------------------
  89. // Global initialization procedure
  90. //----------------------------------------------------------------------------------------
  91.  
  92. extern void InitUQD3DViewerView();
  93.     // Call this routine at initialization time
  94.  
  95. #endif
  96.